<?php


namespace app\common\model;


class FamilyTreeApply extends BaseModel{
    protected $updateTime = false;

    public function user(){
        return $this->belongsTo('User','user_id','id')->field('id,nickname,avatar,bio,education');
    }

    public function familyTree(){
        return $this->belongsTo('FamilyTree','apply_f_id','id')->field('id,user_id,name,seniority,end_time');
    }
}